<?php
/* @var $this IteracionController */
/* @var $model Iteracion */

$this->breadcrumbs=array(
	'Iteration'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Iteration', 'url'=>array('index', 'pid'=>$model->idExperimento0->id)),
	//array('label'=>'Create Iteracion', 'url'=>array('create')),
	array('label'=>'Update Iteration', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Iteration', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Iteration', 'url'=>array('admin', 'pid'=>$model->idExperimento0->id)),
);

    $this->menu2=array(
        array('label'=>'Back To Experiment', 'url'=>array('experimento/view','id'=>$model->idExperimento0->id)),
        array('label'=>'Set Iteration', 'url'=>array('iteracion/addEV','id'=>$model->id)),
);
    
?>

<h1>View Iteration #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		/*array(
                    'name'=>'idExperimento',
                    'value'=>CHtml::encode($model->getExperimentoText())
                ),*/
		'fechaIni',
		'fechaFin',
		//'unidadVPaso',
                'bitacora',
	),
)); ?>

<br />

<!--<h1>Equipos y variables</h1> 

<?php foreach($model->getEquipoVariable() as $txt): ?>
    <div class="author">
        <li><?php echo CHtml::encode($txt); ?></li>
    </div>
<?php endforeach; ?>
<br />-->


<h1>Data</h1>
<table border="10">
<tr>
<th >Mass (gr)</th>
<th>Time (s)</th>
</tr>
<?php foreach($model->displayXML() as $key => $value): ?>
    
        <tr>
            <td><?php echo CHtml::encode($value); ?></td>
            <td><?php echo CHtml::encode($key); ?></td>
        </tr>
    
<?php endforeach; ?>
</table>

